package ru.netcracker.jcl.command;


public class CommandFactory {

	public static ICommand getCommand(String name) throws BadCommandException {
		if (name.equals("notepad")) {
			return new NotepadCommand();
		}
		if (name.equals("echo")) {
			return new EchoCommand();
		}
		throw new BadCommandException();
	}
	
}
